package com.yxuan.springboot.mapper;

import com.yxuan.springboot.model.OutRecords;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 
 * @author zchao
 *    OutRecordsMapper层
 * @date 2024-05-24 20:58:16
 */
public interface OutRecordsMapper extends BaseMapper<OutRecords> {

    //获取订单表里所有kpi
    BigDecimal getOutAmountOrder(@Param("agentId") String agentId)throws Exception;
    //获取体现表里所有已提现金额
    BigDecimal getOutAmountRecord(@Param("agentId") String agentId)throws Exception;
    //查二级代理所有成交的订单金额，不进行佣金比例计算
    BigDecimal getAllOrderAmount(@Param("agentId")String agentId)throws Exception;

}
